package com.lx.user.web;

import com.lx.bilibili.entity.Video;
import com.lx.user.dao.UploadMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("upload")
public class UploadController {

    @Autowired
    UploadMapper uploadMapper;


    @RequestMapping("videoUpload")
    public int videoUpload(@RequestBody Video video) {
        return uploadMapper.insert(video);
    }
}
